package com.xy.simplefactory.pizzastore.pizza;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/10 8:55
 * @description 披萨类为抽象类
 */
public abstract class Pizza {

    protected String name;

    public abstract void prepare();

    public void cut() {
        System.out.println(name + ", 开始切割");
    }

    public void box() {
        System.out.println(name + ", 开始装盒");
    }

    public void bake() {
        System.out.println(name + ", 开始烘培");
    }

    public void setName(String name) {
        this.name = name;
    }
}
